package net.alan.modules.repository;

import net.alan.modules.bean.ProjectAttach;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Author 李岩飞
 * Email eliyanfei@126.com
 * 2017/11/22
 */
public interface ProjectAttachRepository extends JpaRepository<ProjectAttach, Integer> {
    public Page<ProjectAttach> findByProjectId(Integer projectId, Pageable pageable);

    public Page<ProjectAttach> findByTaskId(Integer taskId, Pageable pageable);
}
